// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()
const db=cloud.database()

// 云函数入口函数
exports.main = async (ev, context) => {
 
  const title=ev.title;
  const saytime=ev.saytime;
  const numbers=ev.numbers;
  const divice=ev.divice;
  const process=ev.process;
  const aboutjob=ev.aboutjob;
  const zh=ev.zh;
  return await db.collection("speech_cache").add({
    data: {
      title: title,
      saytime: saytime,
      numbers: numbers,
      divice: divice,
      process: process,
      aboutjob: aboutjob,
      zh: zh,
      create_time: new Date().getTime()
    }
  });
}